// index.ts
// 获取应用实例
const app = getApp<IAppOption>()

Component({
  data: {
    entry: [
      { label: "学生登陆入口", url: "/pages/login/login?type=student" },
      { label: "家长登陆入口", url: "/pages/login/login?type=parent" },
      { label: "教师登录入口", url: "/pages/login/login?type=teacher" },
      { label: "访客登陆入口", url: "/pages/login/login?type=customer" },
    ],
  },
  methods: {
    goToUrl(e: any) {
      const { currentTarget } = e
      const { dataset } = currentTarget
      const { url } = dataset
      wx.navigateTo({
        url: url,
      })
    },
  },
})
